<link rel="stylesheet" type="text/css" href="__TMPL__Public/css/store_nav.css"/>
<style type="text/css">
	.ju-naver,.ju-naver .ju-wrapper,.NavMenu_r,.ju-naver .logo.mouseenter .ju-logo{height: 130px;}
	.NavMenu_r{overflow: inherit;}
</style>

<!--  site-nav -->
<div id="site-nav" class="site-nav" data-spm="102201">
	<div class="ju-wrapper">
		<p class="menu-left">
			<span class="mobile">
                  <a class="mobileLink" href="/" >58代言网                    
                    <img class="qr" data-src="">
                </a>
           			</span>
			<php>if($_SESSION['user_id']){</php>
			<span class="login-info">
                	<a class="user-nick" href="{:U('user/center',array('id'=>$_SESSION['user_id']))}" target="_top">{$_SESSION['user_name']}</a> 
                	<a  href="{:U('user/login_out')}" id="J_Logout">退出</a>
                </span>
			<php>}</php>
		</p>
		<ul class="quick-menu">
			<php>if($_SESSION['user_id']==null){</php>
			<li>
				<a class="select" href="{:U('user/login')}">
					<i></i> 请登录
				</a>
			</li>
			<li>
				<a class="select" href="{:U('user/register')}">
					<i></i> 免费注册
				</a>
			</li>
			<php>}</php>
			  <li>
                    <a href="{:U('user/order')}" target="_blank">我的订单</a>
                </li>
              
                <li>
                    <a href="{:U('cart/cart_list')}" target="_blank">购物车</a>
                </li>
                <li>
                    <a href="http://store.58daiyan.com/" target="_blank">卖家中心</a>
                </li>
                <li>
                    <a href="javascript:;" onclick="addFavorite2()">加入收藏</a>
                </li>
		</ul>
	</div>
</div>
<!--  搜索 -->
<div id="J_JuNav" class="ju-naver" data-spm="102202">
	<div class="ju-wrapper">
		<h1 class="logo mouseenter" id="J_logobox" style="background: url({:sp_getad('logo')}) center;background-size: 90%;">             
            <a target="_top" id="J_julogo" class="ju-logo ju-logo-show" href="/" title="58代言网"></a>                       
        </h1>
		<!--  navtitle   -->
		<div class="NavMenu_r">
			<div class="up" style="width: 970px;">
				<div>
					<div class="shop-info">
						<div class="shop">
							<div class="shop-name ">
								<a href="{:U('store/index',array('id'=>$_GET['id']))}" title="{$store_info.title}"><img src="{$store_template_info.logo}" style="height:60px;"/></a>
							</div>
						</div>
						<div class="shop-main">

							<div class="shop-score-box">
								<div class="shop-score-item">
									<div class="shop-score-title">描 述</div>
									<div class="score color">
										<span>{:number_format($store_info['store_desccredit'], 2, '.', '')}</span>
									</div>
								</div>
								<div class="shop-score-item">
									<div class="shop-score-title">服 务</div>
									<div class="score color">
										<span>{:number_format($store_info['store_servicecredit'], 2, '.', '')}</span>
									</div>
								</div>
								<div class="shop-score-item">
									<div class="shop-score-title">发 货</div>
									<div class="score color">
										<span>{:number_format($store_info['store_deliverycredit'], 2, '.', '')}</span>
									</div>
								</div>
							</div>

						</div>
						<a class="slogo-triangle">
							<i class="icon-triangle"></i>
						</a>
						<div class="extra-info">
							<div class="hd">
								<p class="shop-collect">
									<a href="{:U('store/index',array('id'=>$_GET['id']))}" title="{$store_info.title}" class="shop-logo">
										<img src="{$store_template_info.logo}">
									</a>
									<php>if($rsstoreinfo_status==1){</php>
										<a href="javascript:void(0);" onclick="toggleShop({$store_info.id})" class="collect-btn bg-color">已收藏</a>
									<php>}else{</php>
										<a href="javascript:void(0);" onclick="toggleShop({$store_info.id})" class="collect-btn bg-color">收藏本店</a>
									<php>}</php>
									
								</p>
								
								<script type="text/javascript">
									function toggleShop(store_id){
										$.post('/user/collect', {
											id: store_id,
											type: 2,
										}, function(result) {
											if(result.code == 1) {
												layer.msg(result.message);
												$('.collect-btn').html('已收藏');
											} else {
												layer.msg(result.message);
											}
										}, "json");
									}
								</script>
								<!-- 店铺二维码 _start -->
								<p class="shop-qr-code">
									<img src="http://{$_SERVER['HTTP_HOST']}/index/qrcode?url=http://{$_SERVER['HTTP_HOST']}{:U('store/index',array('id'=>$_GET['id']))}" alt="店铺二维码">
								</p>
								<!-- 店铺二维码 end -->
							</div>
							<div class="bd">

								<div class="shop-rate">
									<h4>店铺动态评分</h4>
									<ul>
										<li>
											描述相符：
											<a target="_blank" href="javascript:void(0);">
												<em class="count color" title="">{:number_format($store_info['store_desccredit'], 2, '.', '')}</em>
											</a>
										</li>
										<li>
											服务态度：
											<a target="_blank" href="javascript:void(0);">
												<em class="count color" title="">{:number_format($store_info['store_servicecredit'], 2, '.', '')}</em>
											</a>
										</li>
										<li>
											发货速度：
											<a target="_blank" href="javascript:void(0);">
												<em class="count color" title="">{:number_format($store_info['store_deliverycredit'], 2, '.', '')}</em>
											</a>
										</li>
									</ul>
								</div>

								<div class="extend ">
									<h4 class="extend-title">店铺详情</h4>
									<ul>
										<li>
											<label>开店时长：</label>
											<div class="extend-right">
												<span class="duration-time">{$cha_time}</span>
											</div>
										</li>
										<li class="locus">
											<label>所在地：</label>
											<div class="extend-right">
												<span>{$address.Province.province_name|default='全国'} {$address.City.city_name} {$address.District.district_name}</span>
											</div>
										</li>

									</ul>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div style="float: right;">
					<div class="nav_left">
						<form action="{:U('search/index')}" method="get">
                        		<input type="text" placeholder="请输入关键词" id="search_Txt" name="keyword" value="{$keywords}" style="color: #000;padding-left: 10px;">
                            <input type="submit" value="搜 索" />
                          </form>
					</div>
					 <div class="hot">
                        		<php>$web_search=explode(',',$web_search);	</php>
                        		<foreach name="web_search" item="v">
                        			<neq name="key" value="0">|</neq>
                        			<a href="{:U('search/index',array('keyword'=>$v))}">{$v}</a>
                        		</foreach>
                        </div>
					<div class="txtMarquee-left">
						<div class="bd">
							<span style="position: absolute; font-weight:bold;"></span>
							<div class="tempWrap">
								<php>$daiyan=get_daiyan_list();</php>
                                    <ul class="infoList" >
                                    	<foreach name="daiyan" item="v">
                                        <li >
                                            <a href="{:U('shop/index',array('id'=>$v['goods_id']))}" target="_blank">
												<php> $v['username']=yc_phone($v['username']);</php>
                                                <span>{$v.username}</span>
                                                <span>代言了"{$v.goods_name}"，获得代言红包</span>
                                                <span >{$v.recommend_price}元</span>
                                            </a>
                                        </li>
                                      </foreach> 

                                    </ul>
							</div>
						</div>
					</div>
				</div>
			</div>

		</div>

	</div>
</div>